package com.stupidzhe.vbreview.service;

import com.stupidzhe.vbreview.bean.ResultBean;
import com.stupidzhe.vbreview.domain.Teacher;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Service
public interface TeacherBaseService {

    /**
     * 管理员登录
     * @param account 用户名
     * @param password 密码
     * @return 结果
     */
    String login(String account, String password, HttpServletRequest request);

    /**
     * 获取管理员信息
     * @param account 用户名
     * @return 教师
     */
    Teacher getTeacherByNumber(String account);

    /**
     * 获取所有教师信息
     * @return list
     */
    List<Teacher> getTeachers();

    ResultBean edit(Teacher teacher, String email);

    Teacher getTeacherByClassId(Integer classId);
}
